<?php
$site_list = '';
foreach( $data['site_list'] as $site )
{
	$site_list .= '<a href="#" onclick="javascript:callme(\'' . $site['url'] . '\',\'' . $site['name'] . '\');">' . $site['name'] . '</a> ';
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $this->_lang['site_title']; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<?php echo $_config['url']['css']; ?>base.css" rel="stylesheet" type="text/css">
<style type="text/css">
#login{margin:5px;}
#nav a:link,#nav a:visited{color:#0000FF;text-decoration:underline;}
#nav a:hover{color:#f00;text-decoration:underline;}
#loading_tips{margin:100px aut;}

.tilelist ul,li{margin:6px 10px 6px 10px;line-height:25px;}
#status{overflow:hidden;margin:0px auto;border:0px;float:left;width:100%;}
#main_image_block{text-align:left;overflow:hidden;margin:0px auto 0px 1px;border:0px;float:right;width:39%;display:none;}
#gotop{width:100%;align:right;text-align:right;padding-top:5px;}
#d3{width:100%;margin:0px auto;border:0px;}
#main{overflow:hidden;margin:0px auto;border:0px;float:left;width:60%;}

#clicknum{display:inline;color:#cccccc;font-family:'Georgia,Roman';font-style: italic; float:right;}
</style>

<script src="<?php echo $_config[ 'url' ][ 'js' ]; ?>jquery-1.2.3.min.js"></script>
<link rel="stylesheet" href="<?php echo $_config[ 'url' ][ 'css' ]; ?>tab.css" type="text/css" media="screen" title="Flora (Default)">
<script type="text/javascript" src="<?php echo $_config[ 'url' ][ 'js' ]; ?>ui.base.js"></script>
<script type="text/javascript" src="<?php echo $_config[ 'url' ][ 'js' ]; ?>ui.tabs.js"></script>
<script type="text/javascript" src="<?php echo $_config[ 'url' ][ 'js' ]; ?>json2.js"></script>
<script type="text/javascript" src="<?php echo $_config[ 'url' ][ 'js' ]; ?>base.js"></script>
<script language="JavaScript" src="<?php echo $_config[ 'url' ][ 'js' ]; ?>site.js"></script>
</head>

<body>
<div id="mask" style="display:none;">
<a name="top"></a>
<?php echo $layout_header; ?>
	<div id="login">
		<form method="post" action="" onSubmit="javascript:callme(MM_findObj('site').value);return false;">
			<?php echo $this->_lang['website_url']; ?><?php echo $this->_lang['colon']; ?><input type="text" name="site" size="40" onMouseOver="this.select();" value="http://news.sina.com.cn/"><a href="<?php echo $url; ?>" target="_blank" id="external_link"><img src="<?php echo $_config[ 'url' ][ 'images' ]; ?>external.jpg" width="11" height="11" border="0" title="<?php echo $this->_lang['open_in_new_window']; ?>" /></a> <input type="submit" name="do" id="do" value="<?php echo $this->_lang['visit']; ?>">
			<div id="nav" style="padding-top:5px;padding-bottom:3px;line-height:150%;">	<?php echo $this->_lang['hot']; ?><?php echo $this->_lang['colon']; ?><?php echo $site_list; ?> <a href="index.php">	<?php echo $this->_lang['more']; ?><?php echo $this->_lang['suspension_points']; ?></a></div>
		</form>
	</div>

	<div id="tips"></div>

	<div id="d3">
		<div id="main">
				<div id="main_news_block" class="flora">
					<ul>
						<li><a href="#tab1"><span><?php echo $this->_lang['promoted_news']; ?></span></a></li>
						<li><a href="#tab2"><span><?php echo $this->_lang['last_week']; ?></span></a></li>
						<li><a href="#tab3"><span><?php echo $this->_lang['last_month']; ?></span></a></li>
						<li><a href="#info"><span id="site_name"><?php echo $this->_lang['site_content']; ?></span></a></li>
					</ul>
					<div id="tab1">
					<ul>
					<?php
					foreach( $data['currweek_data'] as $row )
					{
						echo '<li><a href="article.php?id=' . $row['id'] . '&uri=' . $row['url'] . '" target="_blank">' . html_entity_decode($row['title']) . '</a> <div id="clicknum">' . $row['cnt'] . '</div></li>' . "\r\n";
					}
					?>
					</ul>
					</div>
					<div id="tab2">
					<ul>
					<?php
					foreach( $data['lastweek_data'] as $row )
					{
						echo '<li><a href="article.php?id=' . $row['id'] . '&uri=' . $row['url'] . '" target="_blank">' . html_entity_decode($row['title']) . '</a> <div id="clicknum">' . $row['cnt'] . '</div></li>' . "\r\n";
					}
					?>
					</ul>
				   </div>
					<div id="tab3">
					<ul>
					<?php
					foreach( $data['lastmonth_data'] as $row )
					{
						echo '<li><a href="article.php?id=' . $row['id'] . '&uri=' . $row['url'] . '" target="_blank">' . html_entity_decode($row['title']) . '</a> <div id="clicknum">' . $row['cnt'] . '</div></li>' . "\r\n";
					}
					?>
					</ul>
				  </div>
					<div id="info"></div>
					<div style="clear:both;"></div>
				</div>
				<div id="gotop"><a href="#top">↑<?php echo $this->_lang['goto_top']; ?></a></div>
				<div style="clear:both;"></div>
			</div>
			<div id="main_image_block">
				<ul>
					<li><a href="#img" ><span><?php echo $this->_lang['promoted_image']; ?></span></a></li>
				</ul>
				<div id="img"></div>
				<div id="effort1"><script type="text/javascript"><!--
google_ad_client = "pub-1438807520762899";
/* 160x600, 创建于 10-4-20 */
google_ad_slot = "2568279679";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
			</div>
	</div>
	<div id="status"></div>
</div>

<div id="loading_tips"><?php echo $this->_lang['loading']; ?><?php echo $this->_lang['suspension_points']; ?></div>

<div style="clear:both;"></div>
<br/><br/>
<center>
<!-- SiteSearch Google -->
<form method="get" action="http://www.google.cn/custom" target="google_window">
<table border="0" bgcolor="#ffffff">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"></img></a>
</td>
<td nowrap="nowrap">
<input type="hidden" name="domains" value="www.readvalue.info"></input>
<label for="sbi" style="display: none"><?php echo $this->_lang['input_keyword']; ?></label>
<input type="text" name="q" size="31" maxlength="255" value="" id="sbi"></input>
<label for="sbb" style="display: none"><?php echo $this->_lang['submit']; ?></label>
<input type="submit" name="sa" value="<?php echo $this->_lang['search']; ?>" id="sbb"></input>
</td></tr>
<tr>
<td>&nbsp;</td>
<td nowrap="nowrap">
<table>
<tr>
<td style='white-space: nowrap;'>
<input type="radio" name="sitesearch" value="" checked id="ss0"></input>
<label for="ss0" title="<?php echo $this->_lang['input_keyword']; ?>"><font size="-1" color="#000000">Web</font></label></td>
<td style='white-space: nowrap;'>
<input type="radio" name="sitesearch" value="www.readvalue.info" id="ss1"></input>
<label for="ss1" title="<?php echo $this->_lang['input_keyword']; ?> www.readvalue.info"><font size="-1" color="#000000">www.readvalue.info</font></label></td>
</tr>
</table>
<input type="hidden" name="client" value="pub-1438807520762899"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="UTF-8"></input>
<input type="hidden" name="oe" value="UTF-8"></input>
<input type="hidden" name="safe" value="active"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1"></input>
<input type="hidden" name="hl" value="zh-CN"></input>
</td></tr></table>
</form>
<!-- SiteSearch Google -->
</center>

	<?php echo $layout_footer; ?>

</body>
</html>
